<!doctype html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <title>404页面不存在</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
</head>
<body>
    <br />
    <div>${error!''}</div>
    <br />
    <div>
        <a href="${ctxPath}" class="am-btn am-btn-default">返回首页</a>
    </div>
    <p>页面将在&nbsp;&nbsp;<span class="daojishi" id="countdown">${the_time!}</span> &nbsp;&nbsp;秒后自动跳转到首页...</p>
</body>
<script type="text/javascript">
function timeRun(func,delay){
    var timeId = window.setInterval(function(){
        if(!func()){
            window.clearInterval(timeId);
        };
    },delay);
}
var time = $("#countdown").html() * 1;
timeRun(function run(){
    time -- ;
    if(time==0) {
        window.location.href = "${ctxPath}${url}";
        return false;
    }
    document.getElementById("countdown").innerHTML = time;
    return true;
}, 1000);
</script>
</html>